<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title>管理员用户注册</title>
    <th:block th:insert="~{sys/common/include::head}"></th:block>
    <link rel="stylesheet"  th:href="@{/assets/sys/register/register.css}"/>
</head>
<style>

</style>
<body>
<section class="content-main mt-80 mb-80">
    <div class="card mx-auto card-register">
        <div class="card-body">
            <h4 class="card-title mb-4">创建账户</h4>
            <form id="add-form" class="layui-form" lay-filter="add-form">
                <div class="layui-form-item">
                    <label class="layui-form-label width100">管理名</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" lay-verify="required|username" lay-reqtext="用户名不可为空"
                               placeholder="请输入管理名" autocomplete="off" class="layui-input width490">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label width100">密码</label>
                    <div class="layui-input-block">
                        <input type="password" name="password" lay-verify="required" lay-reqtext="密码不可为空"
                               placeholder="请输入密码" autocomplete="off" class="layui-input width490">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label width100">头像</label>
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn" id="avatar-upload-btn" style="padding: 0 4px">
                            <i class="layui-icon layui-icon-upload"></i> 图片上传
                        </button>
                        <div class="avatar-preview" ></div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label width100">电话</label>
                    <div class="layui-input-block">
                        <input type="text" name="phone" lay-verify="required|phone" lay-reqtext="电话不可为空"
                               placeholder="请输入电话" autocomplete="off" class="layui-input width490">
                    </div>
                </div>

                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label width100">介绍</label>
                    <div class="layui-input-block">
                        <textarea name="description" placeholder="请输入内容"
                                  class="layui-textarea width490"></textarea>
                    </div>
                </div>
                <div class="mb-4 ml-120 col-6">
                    <button type="button" class="btn btn-primary w-100" id="register_btn"> 注册 </button>
                </div> <!-- form-group// -->
            </form>

            <p class="text-center mb-2">已经有管理员账户? <a href="/vm/sys/login">登录</a></p>
        </div>
    </div>
</section>
<footer class="main-footer text-center">
    <p class="font-xs">
        <script>
            document.write(new Date().getFullYear())
        </script>
        ©, Viva商城 .
    </p>
    <p class="font-xs mb-30">All rights reserved</p>
</footer>
<div th:insert="~{sys/common/include::scripts}"></div>
<script th:src="@{/assets/sys/register/register.js}"></script>
</body>

</html>